package com.spzx.product.api.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.spzx.common.core.web.domain.BaseEntity;
import java.io.Serializable;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Size;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 分类品牌
 * </p>
 *
 * @author atguigu
 * @since 2024-10-26
 */
@Schema(description = "品牌")
@TableName("brand")
@Getter
@Setter
public class Brand extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 品牌名称
     */
    @TableField("name")
    @Schema(description = "品牌名称")
    @NotBlank(message = "品牌不能为空")
    @Size(min = 0,max = 6,message = "品牌名称长度不能超过6个字符")
    private String name;

    /**
     * 品牌图标
     */
    @Schema(description = "logo图片地址")
    @NotBlank(message = "图片不能为空")
//    @Size(min = 0,max = 64,message = "品牌图标不能超过200个字符")
    private String logo;
}
